import axiosData from "@/api/axios";
export default {
  /**
     * @description: 查询工况设备
     * @param {String/Number} page *
     * @param {String/Number} size *
     * @param {Object} entity {} *
     * @return {Array}
     */
  // 分页查询
  getListByPageConditon(params) {
    return axiosData.post("/v3/40089-process-v2/processingTask/queryPageByCondition", params);
  },
  // 添加
  add(params) {
    return axiosData.post("/v3/40089-process-v2/processingTask/add", params)
  },
  // 编号删除
  noDel(no) {
    return axiosData.get(`/v3/40089-process-v2/processingTask/delByNo?no=${no}`)
  },
  // 批量删除
  batchDel(noList) {
    let params = { noList: noList }
    return axiosData.post("/v3/40089-process-v2/processingTask/delListByNo", params)
  },
  // 编辑
  edit(params) {
    return axiosData.post("/v3/40089-process-v2/processingTask/edit", params)
  },
  // 条件查询
  conditionQuery(params) {
    return axiosData.post("/v3/40089-process-v2/processingTask/queryByCondition", params)
  },
  // 编号查询
  noQuery(params) {
    return axiosData.post(`/v3/40089-process-v2/processingTask/queryByNo?no=${params}`)
  },
  // 编号批量查询
  noBatchQuery(noList) {
    let params = { noList: noList }
    return axiosData.post("/v3/40089-process-v2/processingTask/queryListByNo", params)
  },
  pageQuery(params) {
    return axiosData.post("/v3/40089-process-v2/processingTask/queryPageByCondition", params)
  },
  // 查询执行人
  personQuery() {
    return axiosData.post("/v3/organization/personDepartmentMapper/queryByCondition", { organizationNo: sessionStorage.organizationNo })
  },
  queryChart(params) {
    return axiosData.post("/v3/40089-process-v2/processBatch/queryChart", params)
  }
}
